//
//  CHGridModel.swift
//  CertManageSdk
//
//  Created by cyptt on 2023/3/16.
//

import UIKit

/*
 图片的位置
 */
public enum Grid_BUTTON_IMAGE_LOCAL_TYPE : Int {
    
    case left = 0    //左边
    case right = 1  //右
    case top = 2   //上
    case bottom = 3  //下
}
public class CHGridModel: NSObject {

  
    public  var iconImage:UIImage?  //必须传参数
    public  var title:String?     //非必传
    

    public var cellBgColor:UIColor = UIColor.white
    
    
    public var titleColor:UIColor = UIColor.init(red: 51/255.0, green: 51/255.0, blue: 51/255.0, alpha: 1)
    public var itemColor:UIColor = UIColor.clear
    public var lineColor:UIColor = UIColor.init(red: 240/255.0, green: 240/255.0, blue: 240/255.0, alpha: 1)
    public  var titleFont:UIFont = UIFont.systemFont(ofSize: 15)
    
    public  var imgPosition:Grid_BUTTON_IMAGE_LOCAL_TYPE = .top //图片位置
    
    public  var margin:CGFloat = 10    //图片文字间距
    
    
    public  var cellHandelr:((_ cell:CHGridViewColCell?) -> Void)?

}
